package edu.sctu.zhoumengxue.day201505.day20150517.textone;


/**
 * Created by user12 on 2015/5/17.
 */
public class Main {


    public void main(String[] args) {
        int i;

        Student[] students = new Student[10];

        for (i = 0; i < 10; i++) {
            students[i] = new Student();
            students[i].getAll("周梦雪" + i, 20 + i, 1406101096 + i, "女" + i);
        }


        TextChild textChild = new TextChild(students);
        textChild.system();
        textChild.getSystem("girl");
        textChild.getOut(17);
        System.out.println(textChild.age+","+textChild.name);

        TextChildTwo textChildTwo = new TextChildTwo(students);
        textChildTwo.system();
        textChildTwo.getOut(15);
        textChildTwo.getSystem("boy");
        System.out.println(textChildTwo.age+","+textChildTwo.name);
    }
}
